<?php

class Orders_model extends ZY_Model {

	public $pri_column="id";

	

    public function __construct(){

        // Call the CI_Model constructor

        parent::__construct($this->pri_column);

    }

  	public function add(){

        $orders=$this->input->post('orders');

		$this->insert($orders);

    }



    public function edit($id){

        $orders=$this->input->post('orders');

		$this->update($orders, array('id='.$id));

    }
    

}